package com.hong.qrpc;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 表示网络传输的一个端点
 *
 * @Author HQT
 * @Data 2022/7/9 19:35
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class Peer {
    private int ProtocolType;
    private String host;
    private int port;

    public Peer(int protocolType, String host, int port) {
        ProtocolType = protocolType;
        this.host = host;
        this.port = port;
    }
}
